package psu.kit;

public class ArrayHandler {
    public int handelArray(int[] array) {
        int count = 0,i=0;
        while(i<array.length-count){
            if(array[i]==0){
                int tmp = array[i];
                array[i]=array[array.length-count-1];
                array[array.length-count-1]=tmp;
                count++;
            }
            i++;
        }

        return array.length-count;
    }
}
